package tmi.li.txwidgets.txbtry;

public class TxBtryTime {
    private int RTimeHours;
    private int RTimeMinutes;
    
    public TxBtryTime(long _time) {
            long tmp = _time/1000; //millis to seconds
            RTimeMinutes = (int) (tmp/60); // seconds to minutes
            RTimeHours = RTimeMinutes / 60;

    }
    
    public String getHours() {
    	if(RTimeHours > 2) {
    		return RTimeHours+" hrs";
    	}else {
    		return " < 2 hrs";
    	}
    }
    
    public int getMinutes() {
    	if(RTimeMinutes > 1440)
    		return 0;
    	return RTimeMinutes;
    }
    
    
    
}
